package ar.edu.itba.it.pdc.configuration.models.filters.originFilters;

import ar.edu.itba.it.pdc.configuration.models.Request;

public class OriginBrowserFilter extends OriginFilter {

	private String browser;
	
	public OriginBrowserFilter(String browser) {
		this.browser = browser;
	}
	
	@Override
	public boolean applyFilter(Request req) {
		return !browser.equals(req.getBrowser());
	}
	
	@Override
	public String getContent() {
		return browser;
	}
	
	@Override
	public String getCriteria() {
		return "Browser";
	}

}
